#ifndef _MEMBER_BCOLORDIALOG_H_
#define _MEMBER_BCOLORDIALOG_H_

#include <BButton>
#include <BSlider>
#include <BSpinBox>
#include <BSpacer>
#include <BColorDialog>

namespace BWE
{
	class member_BColorDialog : public BObject
	{
	public:
		member_BColorDialog(BColorDialog* colorDialog);
		~member_BColorDialog();

		void freshGraph();
		void freshWidgets();

		void procChoose(BObject* object, const BValue& value);
		void procAlphaSlided();
		void procAlphaChanged();
		void procColorSlided();
		void procColorChanged();
		void procOkButtonClicked();
		void procCancleButtonClicked();

		BColorDialog*		boss;

		BSpacer*			drawSpacer;
		BSpacer*			graySpacer;
		BSpacer*			colorSpacer;
		BSlider*			redSlider;
		BSpinBox*			redSpinBox;
		BSlider*			greenSlider;
		BSpinBox*			greenSpinBox;
		BSlider*			blueSlider;
		BSpinBox*			blueSpinBox;
		BSlider*			alphaSlider;
		BSpinBox*			alphaSpinBox;

		BButton*			okButton;
		BButton*			cancleButton;

		BColor				color;
		BColor				grayColor;
		BRect				colorRect;
		BPoint				grayPoint;
		BRect				grayHandle;
	};
}

#endif
